package com.fowo.api.common.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.FieldNameConstants;

import java.util.Map;

@Getter
@Setter
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@FieldNameConstants
public class JoinModel {
    private String targetFieldName;
    private String sourceType;
    private String sourceFieldName;
    private String sourceConstant;
    private String sourceApi;
    private String sourceExpression;
    private String rowFieldName;
    //api参数
    private Map apiParams;
    //是否必填（预留）
    private Boolean required = false;
    //新增导入忽略
    private Boolean importIgnore = true;

}